<script language="javascript" type="text/javascript" src="<{$xoops_url}>/modules/xanhte/js/lib/prototype.js" charset="utf-8"></script>
<script language="javascript" type="text/javascript" src="<{$xoops_url}>/modules/xanhte/js/xeditor.js" charset="utf-8"></script>
<link rel="stylesheet" type="text/css" href="<{$xoops_url}>/modules/<{$app.dirname}>/css/style.css" />
<div id="main<{$app.dirname|ucfirst}>">
<h1><{$smarty.const._MI_XNEWS_TPL_ARTICLE}></h1>
	<{if $app.topic_path}>
		<ul class="xeditorPath">
		<{foreach from=$app.topic_path item=t}>
			<li><a href="./index.php?topic_id=<{$t.topic_id}>"><{$t.topic_title}></a></li>
		<{/foreach}>
		</ul>
	<{/if}>

	<!-- news content -->
	<div class="newsContentList">
		<div class="<{$app_ne.article.topic.topic_alias}>"><span class="newsDay"><{"Y.n.j"|date:$app_ne.article.a_ptime}></span></div>
		<h2><{$app_ne.article.a_title}></h2>
		<{if !$app_ne.article.is_public}><div class="caution"><{$smarty.const._MI_XNEWS_TPL_ARTICLE_SHOW_ONLY}></div><{/if}>
		<p class="xeditorLead"><{$app_ne.article.a_excerption|nl2br}></p>
		
		<p class="xeditorDesc"><{$app_ne.article.a_description}></p>
	</div>
	
	<{if count($app_ne.article.links)>0}>
	<h3><{$smarty.const._MI_XNEWS_AF_a_links}></h3>
		<ul class="xeditorLink">
		<{foreach from=$app_ne.article.links item=link}>
			<{if $link.valid}>
			<li><a href="<{$link.url}>" rel="nofollow"><{$link.url}></a></li>
			<{else}>
			<{$link.url}><br>
			<{/if}>
		<{/foreach}>
		</ul>
	<{/if}>
	<!-- /news content -->
	<{if $app_ne.article.can_edit}><div><a href="./post.php?a_id=<{$form.a_id}>" class="edit"><{$smarty.const._EDIT}></a></div><{/if}>
</div>
<script>
Event.observe(window, "load", function(){
	xnews = new xEditor("<{$xoops_dirname}>");
    xnews.appendOnclick2Images("main<{$app.dirname|ucfirst}>", "xeditorDesc");
});
</script>